package com.joysuch.wwyt.list.bean;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

import java.time.LocalDateTime;
import java.util.Date;

@Data
public class BpListBizListBean {

    @ApiModelProperty(value = "编号，主键")
    private Long id;

    @ApiModelProperty(value = "清单编号")
    private String listCode;

    @ApiModelProperty(value = "清单名称")
    private String listName;

    @ApiModelProperty(value = "清单状态：0=草稿，1=发布")
    private Integer state;

    @ApiModelProperty(value = "清单状态名称：草稿，发布")
    private String stateName;

    @ApiModelProperty(value = "清单创建人姓名")
    private String createByUserName;

    @ApiModelProperty(value = "清单创建人ID")
    private Long createBy;

    @JsonFormat(pattern = "yyyy-MM-dd", timezone = "GMT+8")
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    @ApiModelProperty(value = "清单创建时间")
    private Date listCreateTime;

    @JsonFormat(pattern = "yyyy-MM-dd", timezone = "GMT+8")
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    @ApiModelProperty(value = "发布时间")
    private Date publishTime;

    @ApiModelProperty(value = "发布人")
    private Long updateBy;

    @ApiModelProperty(value = "发布人姓名")
    private String updateByUserName;

}
